// 付费课程
let request = require('../../../utils/request');

let requestApi = {

};

//获取vip信息
requestApi.getVipInfo = (data, loading = false) => {
	return request({
		url: '/vip/getConfig',
		data,
		loading,
	});
}

//获取vip信息
requestApi.buyVip = (data, loading = true) => {
	return request({
		url: '/vip/buy',
        method:'POST',
		data,
		loading,
	});
}

//获取vip信息
requestApi.placeOrder = (data, loading = true) => {
	return request({
		url: '/pay/aliPay/vip',
		data,
		loading,
	});
}

export default requestApi